package com.jwsoft.manager.common.enums;

/**
 * 数据备份任务表
 */
public enum DataTaskEnum {

    EDU_SOCIAL_SECURITY("edu_social_security", "参保记录表"),
    EDU_SOCIAL_SECURITY_DETAIL("edu_social_security_detail", "参保记录详情表"),
    EDU_HOUSE("edu_house", "房产信息表"),
    EDU_HOUSE_DETAIL("edu_house_detail", "房产详细信息表"),
    EDU_LIVE_PLACE("edu_live_place", "居住证表"),
    EDU_COMPANY("edu_company", "法人登记基本信息表"),
    EDU_STUDENT_STATUS("edu_student_status", "学生学籍表"),
    EDU_STUDENT_ENROLL("edu_student_enroll", "学生报名表"),
    EDU_HOUSEHOLD("edu_household", "户籍信息表"),
    EDU_STUDENT_ENROLL_KINDERGARTEN("edu_student_enroll_kindergarten","幼儿园报名表"),
    EDU_STUDENT_ENROLL_PRE("edu_student_enroll_pre","预采集报名表"),
    EDU_STUDENT_ENROLL_FAMILY("edu_student_enroll_family","预采集家庭关系表"),
    EDU_NET_SIGN("edu_netsign", "网签信息表");

    private String table;
    private String tableName;

    private DataTaskEnum(String table, String tableName) {
        this.table = table;
        this.tableName = tableName;
    }

    public String getTable() {
        return this.table;
    }

    public String getTableName() {
        return this.tableName;
    }

    public static String getBytable(String table) {
        for (DataTaskEnum tableEnum : values()) {
            if (tableEnum.getTable().equals(table)) {
                return tableEnum.getTableName();
            }
        }
        return null;
    }
}
